package net.sxnic.ugr.dept.action;

import java.util.List;

import net.sxnic.ugr.context.AppContext;
import net.sxnic.ugr.dept.Dept;
import net.sxnic.ugr.dept.DeptManager;

public class UpdateYear extends DeptAction  {
	
private List<Dept> depts;
	
    private DeptManager deptManager;
	public String lstryear;

	
	public String execute() throws Exception {
		 System.out.println("year====");
		 try {						
		   // checkRoles(Role.SYSTEM_ADMIN);
		    System.out.println("year===="+lstryear);
		    // deptManager.findallByCheckFlag();
		 
			//deptManager.update(dept);
			
			msg = "saveSuccess";
			
			 
			// log
			addLog("===用户===" + AppContext.getUserName(request)
					+ "===修改部门信息成功！===id===" + dept.getId());

				
			} catch (Exception e) {
				e.printStackTrace();
			}
	
		return SUCCESS;

	}


	public String getLstryear() {
		return lstryear;
	}


	public void setLstryear(String lstryear) {
		this.lstryear = lstryear;
	}
	
	 

}
